package com.lz.autotest.project.testmanage.autoTest.service.Listener;

import java.util.Map;

/**
 * @author: X
 * @date: Created in 2023/6/30 9:40
 * @Description: 监听器抽象类，定义监听器方法
 */
public abstract class Listener {

    //监听器类型
    private String listenerType;

    //执行优先级
    private Integer priority;

    public String getListenerType() {
        return listenerType;
    }

    public void setListenerType(String listenerType) {
        this.listenerType = listenerType;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Listener(String listenerType, Integer priority) {
        this.listenerType = listenerType;
        this.priority = priority;
    }

    public abstract void execute(Map<String, Object> map);

}
